Added new signal handler and exit php excution when some signal is received