different shutdown approach between single instance and multiple processes