Try this to exit the application .
VB Code:
  1. Application.Exit()