Close behaviour added.