Try/catch and log exceptions when posting events