Actor acts on incoming messages and events