Make IPython renderer shutdown properly