So I had idea to add umount button into file manager. But file manager is closed :-( Next I got idea for SD card: when kernel receive that gpio switch event it first sync & umount card and then it power down. But I do not have idea if we can call umount from kernel.