Ensure tooltip code is ran with a timeout

As this is blocking ensure the whole operation is ran with a timeout.