Allow with statement for FSAPI objects.

 * Performin I/O in __del__ can crash Python.

Change-Id: Iec0625af161d67438145e24c92303d3a64872ce0