@Override
   public void close () throws SQLException {

      // close mongoResultSets
      if (mongoDbResultSet != null) {
         mongoDbResultSet.setFetchSize(0);
         mongoDbResultSet.close();
         MongoCursor<Document> cursor = mongoDbResultSet.getCursor();
         if (cursor != null) {
            cursor.close();
         }
      }

      // Close connection, ignore exceptions
      if (this.sourceMongoClient != null) {
         try {
            this.sourceMongoClient.close();
         } catch (Exception e) {
            LOG.error(e);
         }
      }
      if (this.sinkMongoClient != null) {
         try {
            this.sinkMongoClient.close();
         } catch (Exception e) {
            LOG.error(e);
         }
      }
   }
Constructs the SqlManager.

@param opts the ReplicaDB ToolOptions describing the user's requested action.
src/main/java/org/replicadb/manager/MongoDBManager.java