allow callbacks to trigger the finishedMsg and end