reorganize ebs backup and detach sequence

to avoid possible snapshot corruption