We should return on failure in shell functions instead of exiting