replaced unref with clearInterval