TimeoutThread connection set wasn't really thread safe. Now solved.