added listener to client to listen for job end