Handle all connection states