close connection right after policy file sent