Return correct exit code from fig run

Closes #197