driver detach/attach code

This local change allowed me past https://github.com/braiden/python-ant-downloader/issues/12 ... didn't know if you could use it.