__main__.py: Calls stop from signal handlers within ioloop safely.

Closes chfoo/wpull#65.