Fix crash when ctrl+c twice