Added optional keepalives to timeoutchecker