closed files properly