lee slipped out of the siege and retreated westward toward a small settlement known forever in the pages of history as the meeting place where general lee surrendered to general grant appomattox courthouse .