refactor window should close commit to avoid dependencies from ofEvents to GLFW