improved the keep alive setting for Mono platform