Fix libotr error handling in OnLoad