Gathers and uploads compressed log file in case of an error.