You can handle the application termination as follows:
ON TERMINATE SIGNAL do_nothing
with
FUNCTION do_nothing() END FUNCTION