Added connect error handling server