bug fix for exit code on linux (don't ask me why)