ipython/ipython — pull request #1981 by tkf (2012-06-18 15:23:45+00:00)
Title: Clean BG processes created by %%script on kernel exit

This patch does not work yet because `__del__` method is not guaranteed to be called on exit. Are there any hook in kernel which is called when the kernel exits?