Return standard errors when possible

Expose the nanomsg specific errors and return all other errors as
expected in the Go world.