BGO#658013: Add timeout to check for disconnect on a key listener