Return to clean plugin state