Start to implement clean shutdown
First try with travis.ci