Adding additional error handling to compression utility.