Now creates the plugins directory (if not already existing) on exit.