clear depency cache
restoring dependency cache
loging memory usage
improving mem check interval
adding domain error context and gracefull shutdown