application close for server