Remove some IPython entry points.
Add close method to Context.
Use new Context.close() in TestContext class.