Allow calling halt from trap handler