refresh connections on error