Version 0.1.3: properly handle closing frames