A few fixes regarding memory and interrupt handling in the epic BLE API
This fixes a potential system panic if there is already an interrupt pending