You would need to pay departure tax of NTD300 (about $9) if you go through immigration. However, they may or may not notice it since most tickets have departure tax collected at ticketing.
Your ticket would not as it would have been issued as a transit.