Set metatable to _preconnect when disconnected and add connected field