syscall cleanup