signal handler with all the signals