Rewrite QBasicConnection.Open() and QBasicConnection.Close() methods to use QBasicConnection.IsConnected() instead of null check