Return to previous application

Hi! I’m using kodi on RPi2/3 with Raspbian Jessie Lite (no X).
I use this script to launch kodi from my application (due to the “black screen bug”) :

Code:
#!/bin/bash
kodi
fbset -depth 8 && fbset -depth 16

The problem is when kodi exits I see the console, rather than my application!
I need to restart it in order to see it again.

What should I do to come back to my application?