Add a closed? method to Tubesock

For long-running threads, it can be necessary to check the socket closed state from within a handler to catch clients closing the connection prematurely.