Improve the grammar in the given sentence.
In the case of Titanic, the ship was equipped with high technology water compartment system that will shut special doors in the event of any emergency.
In the case of Titanic, the ship was equipped with high technology water compartment system that would shut special doors in the event of an emergency.