Added lock.release() logic to except block for entire execute method.