Fixed DefaultPollerFrontEnd shutdown by making Stopped into a state for the
PollerFrontEnd and having the listener in Main stop the scheduler, context,
and process (using System.exit()) in response to this state. Changed states
into an enum. Did some minor lint cleanup in the DefaultPollerFrontEnd code.
Fixes bug NMS-6999.