Wrap try catch around setLinger and close