Revert changes on upateApp to avoid exception in the log when restarting