Replace return 1 with exit 1