add error handling in shrink command
Merge pull request #33 from Masterkatze/master

add error handling in shrink command