Added connect.
Now you may add any function/closure as a signal handler.