osink function

Opens and Closes a sink Connection