Military vessels are exempt from that particular treaty. That would not be a significant worry. But yes, when you go into serious operations, the ship typically enters "black hole" operations where all non-essential communications are blocked. In the ships we were at they just pulled the network cable for the non-operational comms, very effective at preventing anyone from emailing back home.