Fixed event promise being closed