Detect broken connection via SQLException