Fix board crash if the main extension's became unavailable plus minor fixes.

Drop event listener.
Fix board crash if the main extension's became unavailable.