add callback on exit for xine