Detach soap before going into STOR, fixes 1065982 (mostly)