Exit script in case of failure