Fix process queue and add exception monitoring