As of Python 2.7, `tarfile.open` supports the context manager protocol, which means you can do:
```python
with tarfile.open(source_archive) as tar_file:
    safetar_extractall(tar_file, target)
```
And it's guaranteed to close the tar file when you exit the `with` block.