Better message conversion
Add close callback.