Recreate stream in case of error