fixes ERROR: Method 'close:' not defined in Plugin