Improve check argument parsing
Use Application::Exit to implement the exit() script function