testApp -> ofApp on OS X
Catching new destroyed event and calling error