Wait for input before quit