core: Added an avr_terminate() call