Add wrapper to catch errors in init, enable and disable
Catch js/Object instead of js/Error, just to be sure