Generally, it's best practice to cancel your visa before leaving Thailand to avoid future issues. You should email the Smart Visa Unit to confirm:
*******************
The steps for cancelling your Smart Visa are on their website (point #5):
***********************************************************