handle complete/error events