Attempt to flush I/O from Java sim prior to exit.
Bumbed up socket test teardown sleep to 2 seconds... for Linux