Added sanity check to signal_handler.cc