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