terminate action if something is wrong