added exception to the error message about failing to open a connection