cleanup shutdown and file server