try to add jobs before connection closes