Fixed IOLoop.close implementation