Make OTAPI more benevolent

Return error code instead of terminating process
Merge pull request #274 from mhamrle/asserts_in_otapi

Make OTAPI more benevolent