Made Main always exit, deadlock or not