Improve thread safety in MyExchange and rename class and methods