requestor: handle the case of socket error in login method

cloudmonkey would break if mgmt server is not running instead of handling the
case of socket error, connection refused. The fix adds a try catch block on the
login by username/password mechanism.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>