Catch connection exeption