added signal handler to stop RT loop

cleaned up a bit
RT loop can now be stopped GUIess with SIGUSR1 signal from ./stopRT.sh
TODO find a way to do something similar in the Viewer as alternative to
a hard Quit. is difficult because signal handler cannot change class
member variables and if they are changed into static members the linker
complains