cleanup and fixed heap bitmap deinit