every once in a while when calling this method on multiple threads, the program would just end with no errors. Decide to wrap getline with a lock object to see if it was a threadsafe issue.