I had the same thing happen. I had a contractor working for me for about a year who, when we decided to not renew his contract, took all of the code that I'd been building for the past 6 years and offered a nice little side business to clients in his area.
I found out because he kept emailing me with support related questions whenever he'd run into issues with it.