Increased poll time on reload to 1s
Added boolean reloadEnabled which can be set to false to disable
reloading (currently always true)
Editted checkModified (called if and only if a close is requested) to
check if the close will be successful (i.e. if it will return true)
Added code in checkModified to trigger the stopping of the reload thread
when this editor is closed