Reconnecto to DB if connection closed