server now catches and stops responding to the client more than once