So this started by Ship-chan saw the picture of her commander and a woman with kid thinking the commander is already have family so she was fucking around the base. Then the commander confess to her ask her to marriage him, Ship-chan goes mental breakdown. The woman with kid may be the commander acquaintance/friend or his wife but dead long ago.
Guess she self-detonation at the end, she is a ship after all.