Exception Handling in Server when closed.