We may think to add an option shardClosed to choose the behavior in case the shard is closed
We will have an enum with the following values:
- ignore = default behavior
- fail = throw an exception
- silent = ignore but without any logging
A restart option is not needed because in case we decide to go with ignore or silent the behavior will be the same as restart.