Stops console from being closed after app finishes.