Exception handling returns errno (rev. 9)

Signed-off-by: nixnodes <code@eth.si>