OF doesn't use the X11 window system on the RPI as X11 is not hardware accelerated. It instead draws directly to the screen (you don't need to start X11 in order to use an OF app)
As for freezing on the last frame - how are you exiting the application? I typically use CTRL-C