Fix station halting bug, add trader residual cargo check