Fixes #7 context and window is disposed of correctly in rendering backend