Catched possible connection error crashing program.