Add option to close with escape