Jozef,
>I tried all clear, close, release options.
>When I activate debuger problem dissapears - app file is close as it should.
>This prooves that my code is theoretically good.
Just because the debugger is empty it doesn't mean that your app has totally released from memory. I think you need to put some set step on lines inside your shutdown code and trace through it.