Add exception to error message when the call to .accept() fails