consistent usage of timeout context manager