Diagnostics around releasing resources