Handle errors, print commands in Main