Service: Fixed synchronization issue with disconnect.