device-handler: Don't unmount non-mounted devices