Fix exception
Print backtrace for errors
Exit after error