add interruptions to bfgs for issue #96

to fix issue 96, this can be merged after stan pull #840 is merged