Add code to handle timeouts in the post code.