Delete encoder if init() failed.