Destroy framebuffers, textures and renderbuffers when the context dies.

r? @eschweic