More general error handling for sinks