Fixed crash due to cef event handler being deleted too early