Added connection check after init.