Yes, but had he really been dealing with a crew safety issue, there are formal ways of dealing with that, like using the chain of command, returning home, going to port, etc. The public letter is very unusual. Screams political act to me.
He's getting relieved. Either he had bad motives, or his entire chain of command is corrupted. I know which one I'm leaning towards.