Ensure that py.test exits with correct signal. Fixes #71