Added a timeout to allow the server time to start
Properly handle socket errors
Bump version to 1.2.2