firing a done event when processing is done