win95 shutdown

when my delphi application is running and i try to shutdown
win95, the desktop simply gets refreshed ..ie: shutdown has no effect

can anyone help ?
brian.