serv-3736 catch exit signals