Add an optional hook to be triggered when the 'save' command is issued.