Fix possible crash in application exit