I'm about to write a Java-Bluetooth application.

If I run it in the emulator it works fine, but on my Nokia 6600 it shuts down without an error message.
Is there an errorlog on the phone I can access to see what's wrong ?
Or can I force the MIDlet to show me an error message before shutting down ?