Change assert order.
Move process to stop process timeout to be daemon.