Remove temporal folder during shutdown
Closes: #2891

This is the temporal folder that is used under osx and linux for
the unix socket to connect to the management interface.
Merge remote-tracking branch 'kali/bug/2890-remove-tempdir-on-shutdown' into develop