add tests for global_timeout feature
remove deadlock happening when notifications were used and the pool become dead
remove deadlock happening when notifications were used and the pool become dead