Is there any way to set the number of connection attempts, or at least to catch a failed connection attempt? Thanks, Alex