Do not use exit|return with negative status code to fix bashism

cf. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772311