Ensure teardown.sh is alwasy executed
- Currently, on_exit() is advised to run by only 'EXIT' signal that is
for gracefull termination
- Thus, on_exit() function might not run in cases where job terminates
abruptly
- To guarantee on_exit() alwasy being called, then add other common
termination signals: SIGINT, SIGTERM, and SIGQUIT
- This will allow the trap command to catch these signals and execute
on_exit() before it terminates.
Definition of the signals:
- SIGINT: Interrupt signal
- SIGTERM: Termination signal, a generic signal used to request a
process to terminate.
- SIGQUIT: Quit signal
Issue-ID: CPS-2821
Change-Id: I96e5d3d42fb26d5dbad75df63a23419914c44fa5
Signed-off-by: halil.cakal <halil.cakal@est.tech>