Added more logging for lockWrapper.sh