Move destroy of decoder in finally block