async IO cleanup, correctly-typed syscalls