Adding corresponding close check to keep behavior consistent. Adding test