release lock after fatal error