This routine causes the SNMP agent to exit. It is available in case the user encounters some problem after a successful startup.
This routine must be called from the main thread. Any other tasks spawned by the user (for asynchronous method routines) should be deleted prior to calling this function.