QuickBooks closes unexpectedly if you click on the Payroll icon
The QuickBooks Toolbar may be damaged
Intuit recommends 2 possible solutions. Please follow the steps in the order provided.
Use the Employee Menu
Hide the Toolbar
After you have exited Payroll you can try Company > Show Company Toolbar to turn it back on.
Note: Maximize the toolbar, even if the one of the first two solutions works.