After some debugging, found that if I add a signal handler in the HAL, that solves the problem, no longer seeing a crash. Posting it here in case someone else has similar issues