wrapped compression operations in a try/catch and logging on stderr