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.