title: Stop scipy.optimize.minimize after maximum runtime
body: <p>I run <code>scipy.optimize.minimize(method='L-BFGS-B')</code> on a cluster. Tasks running longer than 72 hours will be killed without any option of saving the result. Is there a way to exit <code>scipy.optimize.minimize()</code> after a runtime of T=48h has passed? </p>