move exception handling out of taskmgr
work on logging
need to support multiple checks for each command