Remove unnecessary imports
Edit copyright
Handle msgpack::type_error (bad cast)
Add 1ms timeout for select