Added errno to module exceptions