catch possible requiretty errors

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
Merge pull request #171 from alfredodeza/7585

catch possible requiretty errors