Close idle connections to release memory and exit node process well