The `scope(exit)` could be dropped now for slightly better performance.