Hi,
the problem may be in accessing avastrc file, if you use avast binary from avast4workstation package. Because avast reads the file from user's home directory when it is starting. I suppose Anomy Sanitizer does not run under your username, so avast exits because it cannot find ~/.avast/avastrc file.
I suggest to use avastcmd file from avast4server package instead. The binary is designed to be used for this purpose.