minor logging / program exit changes