fixed lost update problem when SearchOrders is interrupted
added force php version snippet
prepare for daemonized calls