Successfully communicating back and forth, errors exist in exiting