Implentation of an async connection check