added methods and checks for read-hangup (half-close)