Fixed crashing with avi loading

by sending messages back to the event handler.