THX-378 Added application behaviour support
THX-378 Added supervisor behaviour support
THX-378 Avoided global crash when connection to memcached is lost