Added implementation of DetachPlugin().