Issue 1830: 	setTimeout()s and setInterval()s are not stopped when script execution is stopped