Is shell access activated for your user name? If not, you’ll have to edit your user in the control panel and activate it. If you just did that, it might take awhile before the settings take effect.
You can also check “Never” at the bottom of Putty, where it asks about closing the window on exit. That should show you what the error is, instead of disappearing.
Save $96 at Dreamhost with the 96DOLLARSOFF promo code.