Catch errors in worker thread.
Add primary buttons.