Add signal handlers for all ther temrinate signals to ensure the rig
is unlocked if possible.