Added context close to swing sample