exit method with Nothing return type