Unload bundle if extension fails to load

Fixes #48