Hi Bumbles
To be honest the reason you move out is not a deciding factor. The CGT exemption will only be forfeited if you stay out of the house for over 6 year or you CHOOSE to nominate another house as your new PPOR.
If you did own a new house closer to the city you could choose for...