prestep "on close"