Memory leaks

Observers are not properly torn down.

@azirbel @Dylnuge @igillis