Changed close() to close_connection() to avoid name collision