Fix erroneous exit code on success