Handle the exception being thrown from the accept