Fix deletion of amps buffer.
Removed file-closing. RAII-lords don't do it manually.