Fixed an issue that was getting the send routine stuck in an infinite transmit loop (race condition) and some clean up.