Separate flag to enable asan
Separate free() from stop() for contexts