in gym3/internal/renderer.py [0:0]
def finish(self) -> None:
"""
Complete the current frame and return keyboard keys that the user has input
"""
self._glfw.swap_buffers(self._window)
if self._should_close or self._glfw.window_should_close(self._window):
self._glfw.destroy_window(self._window)
self.is_open = False