Adding runnable task to keep the connection alive.