cleaning up invalid and stale nginx mask