Disable assert for already called end in end()