Tidy up syscall handling.