Upon the service of such certificate on the former sheriff, his powers as such sheriff, except in the cases otherwise expressly provided by law, shall cease.