Negative value passed to sleep() caused exception. Wrote unit test to confirm failure, corrected TradingSession.pauseBetweenCycles() and passed test.