Give an error if the server was closed while blocked in accept