Signal handling, some more event stuff