Apply arguments to 'view.onBeforeClose' call as well