Developed a hard fault handler