Added success message and stopped instant closing.