Detect gif decoding failure and notify listener. Logging and cleanup.