public function handle()
    {
        $error = $this->lastErrorProvider->get();

        if ($error === null) {
            return;
        }

        if (!($error['type'] & (E_ERROR | E_USER_ERROR))) {
            return;
        }

        $this->logging->log(
            'Script stopped due to FATAL error in ' . $error['file'] .
            ' in line ' . $error['line'] .
            ' with message: ' . $error['message']
        );
    }