Catch IOExceptions and re-throw as LispErrors
Fix closing of already closed ports