Improve sc2json.py logging and shutdown sequence.