Add custom kill timeout. Add STDIN communications