only deinit bundler if @enabled

This should fix #4869 properly.

\- Felix