I created your project and had the same problems until I changed the following line of code to True
:
Application.MainFormOnTaskbar := True;
Now the app seems to work just fine without an minimizing to the bottom left corner of the desktop before it is hidden.