Update ModSimulator.java

Replace modThread.stop() with modThread.join() which is not deprecated and works better.