added error message on unlock error