Changing error handling on trix

Moving the error handling commands on trix to support errors on
setup, clean and script.