Added reconnect for offline jobs