Make sure we check the result of closing the TMCC connection so that
if it fails, we exit gracefully from the node setup instead of screwing stuff up even worse. Basically, I converted all close($TM) to CLOSETMCC($TM) which does the proper checks and dies if error. This is probably not ideal either, but not really sure what the ideal solution is when tmcc fails.
Showing with 67 additions and 37 deletions