Adds the linger time to the close function to enable the lazy pirate pattern.