Possible its leaving the framebuffer in an unusable state upon exit. It’s pretty common when launching some things from emulationstation. Generally we pipe things through the runcommand script which helps with that. I’d have to test it myself though to verify.
If you want to set up a repo on github preferably with a commit history showing your changes that would be great
Also would be ideal to be built for raspbian Jessie as we won’t provide support for wheezy going forward.