Add autoclosing mapping