dot-finish_data_preparation function

Internal function for finalising generic data processing