Added callbacks when handling errors. 

Added callbacks when handling errors. Removed the log.error call on the compressor callback to continue processing.