fix button handling when capture fails, closes #79