Bryant also walked off the court to hug his former teammate Shaquille O' Neal 