nl_tokens: This will shut down the tunnel in a nice way
pl_tokens: function cleanup ( ctx , cb ) { cleanupRun = true var msg = "Shutting down Sauce Connector" console . log ( <mask> ) ctx . comment ( msg ) if ( connectorProc ) connectorProc . kill ( "SIGINT" ) // Give Sauce Connector 5 seconds to gracefully stop before sending SIGKILL setTimeout ( function ( ) { if ( connectorProc ) connectorProc . kill ( "SIGKILL" ) fs . unlink ( PIDFILE , function ( ) { } ) msg = "Sauce Connector successfully shut down" console . log ( msg ) ctx . comment ( msg ) return cb ( 0 ) } , 5000 ) }