check for exceptions on creating ocaps

also, a couple linebreaks to make on_connect debuggable