added exit after Output::error()