Improved reproting of kernel return codes.