AMENDMENT NO. 4 TO AMENDED AND RESTATED CREDIT FACILITY AGREEMENT and convertible noteS