Kill main process after killing its children