Ticket #22399 - Remove the onScriptLoad callback on app destroy