catching connection exceptions in server in order to respond quicker to potential server down-time.