Save buffer status when close | centralising temp files