bail if there is an error