add interruptions to bfgs

this can be merged after stan pull #840 is merged