Fix for Gzip and tempfile error

- Added check if gzip compression succeded. If failed, then the resulting error message was "File sizeBytes must be set" because gziped file was zero size.

- Forced closing of temporary file in Table::save(), otherwise unlink($tempfile); may fail because the file is still open (caused error: unlink(Temp\\sapCC7D.tmp): Permission denied)