[v6r12] Secure sandbox cleaning process 

If the cleaning thread had an exception, it would not release the lock. Adding more try/catch around the os calls