Fix bug which fails to process on empty close frames