add customizable warning after errors; add warning message for failed 'restart'