release lock if exception occured after acquisition, more meaningful error message