Make OTAPI more benevolent

Return error code instead of terminating process.

I removed failing only in one method. I can continue in this if there is consensus on that.