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.