A solution is to send a silent notification and upon getting the notification calling exit(0)
in you code but I will recommend against this as it will not pass Apple review.
solved How to remove app from background programmatically in ios [closed]