fixes #332 by spawning a thread when trapped signals are recieved