Fixes for connect operation (timeout and notify fix).