Exception handling when invalid args are given