Added try/catch blocks  to signal handler to provide better error handling