Update Application.php

Add stop method