[*] Fixed a number of errors that led to SEGFAULT occurring when deleting an order using the srv_xchange command.