facebook/tornado — pull request #735 by minrk (2013-04-15 18:40:29+00:00)
Title: try close method to close FDs in IOLoop

If an object has a `close` method, use that first, then fallback on `os.close`.

This is useful in subclasses that support polling things (zmq sockets, specifically) that are not simple FDs (and Jython, I hear?).