Looks, good. It would be nice to get a reference to token while inside the context and then after exit test that token is closed... but I don't know what API to use.