Forgotten to unlock mutex in case of error