Exception less mainloop in ata.ml