connection rawCallback as flag
Callback with err when the param can not be guessed.

Other changes:
* Lazy frame write
* Clear errors for unhandled types