Added try / except around socket connection