Rewrite QBasicConnection.open() and QBasicConnection.close() methods to use QBasicConnection.isConnected() instead of null check