exit code 0 is only for successful operations and shouldn't be used when error occurs