Automatic sealup

Automatic sealup was a safety feature on spacecraft and space stations triggered when pressure sensors detected a sudden decompression or exposure to vacuum. A alarm signal would be instantly transmitted to a central station which would in turn immediately send commands closing all airtight bulkhead doors.

Source

 * A Guide to the Star Wars Universe (Third Edition)
 * The Star Wars Encyclopedia