added try/catch for connection, removes sensitive info from stack trace #344