lib.sh: return instead of exits