Check in destructor of service if connection exists.