In "void initengine()"
"Slot slot_quit" is a local variable, thus when the function exits the slot will disconnect.