Added error handling for sinkstop