Fix for exit codes