Move signal handler to outside of process package