Fixed garbage collection when hot reloading and fixed some context issues