DOCloudClientFactory:93 Executors.newFixedThreadPool(backgroundThreadsLimit) can prevent server from shutting down, if any thread is stuck.
It is better to use jetbrains.buildServer.util.executors.ExecutorsFactory#newFixedScheduledDaemonExecutor from TC common-api.jar and create an scheduled daemon executor, which you can later use in CloudImageStorageImpl to avoid having a permanent thread.