Trying to avoid to many exceptions in terminal