updated to use a context manager to manage the timeout
fixed type
Merge pull request #1 from adlnet/addContextManager

updated to use a context manager to manage the timeout