fix crash when call destroyed after core

Merged jehan requested to merge fix/crash_when_call_destroyed_after_core into master

Merge request reports