Features/plugin restarting

Add restart behavior for plugins, and force a shutdown if a plugin fails.