Sending error to the right connection