Added missing import.
Removed unused import.
Generate an event in case of telemetry failure. Closes #546.