Make sure to unregister services and plugins in the reverse order of when adding them.