Removed signal handler from queue routines.
Add signal handler to main function.