flasher: close to shutdown

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>