Move context.terminate to teardown. Seems like a good idea.