Resolving timeout thread