Explicit manual plugin attach; get rid of plugin monitor thread.
detach before attach and make detach idempotent.