Added exit() call to signal handler