Use bash -ex