Timeout script to kill curl when network controller is out of reach

A timeout script that kills a command after a while. Useful when the Internet connection is disrupted on the unit when connect-timout parameter for Curl is not enough.