// clean up
// ----------------------------------------------------------------------------
-// cleanup done before destroying wxTheApp
+// cleanup done before destroying wxTheApp
static void DoCommonPreCleanup()
{
#if wxUSE_LOG
{
#ifdef __WXWINCE__
::ExitThread(3); // the same exit code as abort()
+#elif __PALMOS__
+ return -1;
#else
::ExitProcess(3); // the same exit code as abort()
#endif