More robust starting and stopping of thin (timeout!)