DahuAppProxy.java:exit function

adding an exit function which aims to taunt the exiting of the application
link exit button

Now, when the exit button confirm dialog message is clicked and ok, the appication exits properly