Hermetic sealing of the casings