exit 1 if there's anything wrong