added debug backtrace in halt