Cleaning up error output for connections