Raising exception from system call