Add error reporting to lock fail