Remove the call to ungetService. It's already done by the framework.