O Captain! My Captain!

Walt Whitman wrote this poem after the assassination of President Abraham Lincoln in 1865, just as the Civil War was coming to an end. Like his fellow countrymen, Whitman had deep love and respect for the beloved hero who held the nation together through such a time of crisis.
O CAPTAIN! my Captain! our fearful trip is done;
The ship has weather'd every rack, the prize we sought is won;
The port is near, the bells I hear, the people all exulting,
While follow eyes the steady keel, the vessel grim and daring:
5 But O heart! heart! heart!
O the bleeding drops of red,
Where on the deck my Captain lies,
Fallen cold and dead.

O Captain! my Captain! rise up and hear the bells;
10 Rise up–for you the flag is flung–for you the bugle trills;
For you bouquets and ribbon'd wreaths–for you the shores a–crowding;
For you they call, the swaying mass, their eager faces turning;
Here Captain! dear father!
This arm beneath your head;
15 It is some dream that on the deck,
You've fallen cold and dead.

My Captain does not answer, his lips are pale and still;
My father does not feel my arm, he has no pulse nor will;
The ship is anchor'd safe and sound, its voyage closed and done;
20 From fearful trip the victor ship comes in with object won;
Exult, O shores, and ring, O bells!
But I, with mournful tread,
Walk the deck my Captain lies,
Fallen cold and dead.

Why are the people at the dock so excited at the beginning of the poem?

A.
because all of the slaves and indentured servants have been freed

B.
because they will meet the captain of the vessel, who is famous for his adventures

C.
because the vessel has returned safe after completing its dangerous mission

D.
because the captain has brought home prisoners of war

C. because the vessel has returned safe after completing its dangerous mission