Add connection exception handling to validation