Add code for feedback on connection errors.