Fixed issue with timer event causing problems on Windows