Fix framebuffers not unbound when destroyed