Fixed bug in close()
Merge pull request #52 from simongog/ram_filbuf_fix

Fixed bug in close()