Allow a resource to be the context manager
Bump version to 0.2.5