Client closing won't make error when closing server first