Log an error when unable to open the connection