Added a closed? method to Tubesock to allow for checking of the socket closed state from within handlers.