Added register_shutdown_function in example
Merge pull request #4 from steffex/master

Added register_shutdown_function in example