             sshQueue.async {
                 channel.closeShell()
             }
+        }else{
+            NMSSHLogger.shared().logError("Channel is nil")
         }
     }
 }

                }
                
            }
        }
    }
    

            sshQueue.async {
                session.authenticate(byPassword: pass)
            }
        }else{
            NMSSHLogger.shared().logError("Session is nil")
        }
    }
    
