added new option blocked to not allow closing of the outputstream on the singleoutputstream