I bet you did not fly it first in an open area to test what is does and does not do/or how it does things, before setting off on a real mission... And your first reaction is to blame Litchi?
You simply programmed it incorrectly. Sorry for your loss though, is horrible especially when it is...