Update to PSR-4
Closing data stream on destruction