fixed segfault on close because ExperimentApp was overwritting the handler set by DirectXApp without setting a reference to the app in the new handler.  This was also a memory leak.