some clean up; unlink hostname file after reading