Add raising polarssl error code on SSL#write