handling async method exception for getting next command