Put better exception handler in the read loop
Fixed error when receiving messages containing literal IPv6 addresses
Switched requires to 1.9 style