needs-restarting: catch IOError. BZ 1127191