Registering signal handler for system signals is done earlier

Before grabber / videosender is opened first the signal handlers are registered. This allows
better error handling if the VideoSender hangs, which can happen if the URL is not
accessible.
Merge pull request #41 from dozeo/fix_signal_handler

Registering signal handler for system signals is done earlier