Move setting is_processing flag to handle_event method.