Don't hang forever when a connection is closed.