Module detach function behavior