Copy toolcontext properties file from template
Move mutex release to finally block