Script to recconect if connection shutdown