AgentMain#connect is no use.
Add AttachMain#CommandListener.
Add AttachMain#registerExitHook.
Add AttachMain#registerSignalHandler()
correspond to DEBUG mode.