Add CountdownLatch. NodeAppContainer now stops on SIGTERM and SIGINT.