unbind module instance on scope change