public function gracefulShutdown()
    {
        if ($this->finished) {
            return !$this->writing;
        }

        $this->logoff();

        $this->finish();

        return false;
    }
public function gracefulShutdown()
    {
        if ($this->finished) {
            return !$this->writing;
        }

        $this->logoff();

        $this->finish();

        return false;
    }
public function gracefulShutdown ( ) { if ( $ this -> finished ) { return ! $ this -> writing ; } $ this -> logoff ( ) ; $ this -> finish ( ) ; return false ; }
Called when the worker is going to shutdown
@return boolean Ready to shutdown?
Called when the worker is going to shutdown