clean up ccnls main loop