Added unlock to fail callback