fixes #110 - refactors status file handling in order to properly close the corresponding reader/writer after accessing the file