Catch NullReferenceException when open connection, this case heppen when can't buid connection.