Postpone the shortcut handler destruction to avoid seg. faults