fix: when `reload/restart` is called, listeners of stdio should be removed.