Part of the problem is the delay before the ship processes your order. After the ship enters orbit of wherever it is, it takes some time before it is ready to jump to the next leg of the trip. If you cancel the order to move, the ship won't actually process the order until it is ready to move, and that could be almost a minute or more, depending on the class of ship and how fast it moves.