fix bad reference to error and emit deleted event when sink successfully deletes