public short notify_to_deinitialize()
	{
		if (t.isAlive())
		{
			try
			{
				exit.set(true);
// Sleep so that the worker thread can write the the rest messages to the device
				Thread.sleep(100);

				String debug_msg = "Notify the worker thread it's going to die...";
				MsgDumperCmnDef.WriteDebugSyslog(__FILE__(), __LINE__(), debug_msg);
				if (!silent_mode)
					System.out.println(debug_msg);
				synchronized(this)
				{
					notify();
				}
			}
			catch (InterruptedException e)
			{
				String warn_msg = "Error occur while waiting for thread's death: " + e.toString();
				MsgDumperCmnDef.WriteWarnSyslog(__FILE__(), __LINE__(), warn_msg);
				if (!silent_mode)
					System.out.println(warn_msg);
			}
			catch(Exception e)
			{
				String errmsg = "Error: " + e.toString();
				MsgDumperCmnDef.WriteErrorSyslog(__FILE__(), __LINE__(), errmsg);
				if (!silent_mode)
					System.out.println(errmsg);
			}
			
		}
		return MsgDumperCmnDef.MSG_DUMPER_SUCCESS;
	}