issue #24, unresolve issue with exit