more modification to handle exception

Now gracefully closes when user enters okay without supplying any data.