Found the mistake. The game wrapper runs a separate thread for the physics as the openscenegraph-viewer seems to be a blocking call. The interface is idiot proof but I plan to use reference counted pointers.