Updated pcntl_signal() callbacks to use closure to shed signal parameter, preventing typecheck errors.