Added guard thread to monitor timeouts