Fix error handling in Python 3
Add the msgpack use_list=False option to stop a warning
Fix socket closing in the new tcp transport