fix: make sure buffer is released in any case, also after not acked writes and when killed