Tweeting public servant loses last bid to save job