More fix for #976: re-open is now trigger when the connection is fully established