removed some useless stuff and now tells user when it exits cleanly