Make sure log streams are done before command returns