A computational framework for the quantification of rare events in systems with instabilities