Fixed shortcut doesn't register on form closing.