Events - event-example.c : add signal handler for graceful teardown, whitespace fixes and other cosmetics.