Handle managment of signal simpler

1. I did not test it
1. As you don't require ext pcntl in you composer.json you should check if functions are available
1. As you declare `ticks =1` and you exit when signaled, this code is useless.

My 2 cents ;)