public function setSignalHandler(int $signal, callable $closure = null){
        if (empty($closure)){
            return pcntl_signal($signal, array($this, 'sigHandler'));
        }
        return pcntl_signal($signal, $closure);
    }