After CLOSE APPLICATION block, app not stopped

I have write an app that after CLOSE APPLICATION command block, disappear from smartphone screen but if the app is queried (with an sms sent by pc), it respond !!!
When Home button is pressed the appa appear even if blacked
Why isn’t the app being turned off?
How do you turn it off completely?