Listen to the right event to close the mimic on close AND restart