fix bugs in interpreter and client

fix bug where incorrect input give null pointer. In client, check
streams not null before closing. Delete old test file.