During shutdown ignore failures to write fd.

During shutdown the fanotify file descriptor is closed.

Some scan tasks may end after the fanotify file descriptor is
closed. Writing to the closed file descriptor will result
in an EBADF "Bad file descriptor" error.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>