Se api

Just for preview. Please don't merge it.
I'm not a fan of that kind of checks, but if we have that test here, then should the release function set it to NULL also.