cmdline: break the interact loop if it returns EOF