Greetings of the day,
Please check this thread and you can get some another solution from this.
In addition to this, you can also deduct a fix amount of Salary (Like 10% Per month) for the security purpose.
It will can fulfill your loss if employee is leaving the company without notice period.
20th February 2013