o Fixed bug with 'exit' event not always firing.