Make sure all file handles are closed before removal
Change compression algorithm to xz