handle shell command exceptions

closed #25