src: fix exception message
src: fix recording format check
src: fix style
src: workaround for odd ObjectWrap behavior

ObjectWrap is weird.