Adds Future.rejected function.