error handling, logging during restart