Fixed shutdown_hook deprecation warning in IPython 2.0