added missing unlock statements for handler mutex.