class Async::Container::Generic

def stop(timeout = true)

@parameter timeout [Boolean | Numeric] Whether to stop gracefully, or a specific timeout.
Stop the children instances.
def stop(timeout = true)
	Console.debug(self, "Stopping container...", timeout: timeout)
	@running = false
	@group.stop(timeout)
	
	if @group.running?
		Console.warn(self, "Group is still running after stopping it!")
	else
		Console.info(self, "Group has stopped.")
	end
rescue => error
	Console.error(self, "Error while stopping container!", exception: error)
	raise
ensure
	@running = true
end