Unity update on close