Fixed plugins not removed when controller is destroyed.