Recovery: added handling safe flag which turns off removing key from unproper node.