automatically close open proxy files (fixes #68)