public function stop()
	{
		if ($this->is_started())
		{
			$this->delete('session');
			$this->_pid = NULL;
		}

		if ($this->_pid_file AND is_file($this->_pid_file))
		{
			unlink($this->_pid_file);
		}
		$self = $this;

		return Attempt::make(function() use ($self) {
			return ! $self->is_running();
		});
	}
public function stop()
	{
		if ($this->is_started())
		{
			$this->delete('session');
			$this->_pid = NULL;
		}

		if ($this->_pid_file AND is_file($this->_pid_file))
		{
			unlink($this->_pid_file);
		}
		$self = $this;

		return Attempt::make(function() use ($self) {
			return ! $self->is_running();
		});
	}
public function stop ( ) { if ( $ this -> is_started ( ) ) { $ this -> delete ( 'session' ) ; $ this -> _pid = NULL ; } if ( $ this -> _pid_file AND is_file ( $ this -> _pid_file ) ) { unlink ( $ this -> _pid_file ) ; } $ self = $ this ; return Attempt :: make ( function ( ) use ( $ self ) { return ! $ self -> is_running ( ) ; } ) ; }
Gracefully stop the phantomjs server. Return FALSE on failure. Clear the pid_file if set
@return boolean
Gracefully stop the phantomjs server . Return FALSE on failure . Clear the pid_file if set