release stdout and stderr early