always close ajax connections when they complete